package com.dragon.modules.yuegou.entity.merchant;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * 商户短码表实体类<br>
 * 对应的表为：mer_merchant_short_url<br>
 * 
 * @author pbuilder generated
 * @date 2019-09-29 10:10:16
 * @company sgy
 * @version 2.0
 */
@TableName("mer_merchant_short_url")
@ApiModel(description = "商户短码表")
public class MerchantShortUrlEntity {

	protected String id;

    /** 商户ID */
	@ApiModelProperty("商户ID")
	protected String merchantId;

    /** 短链接码 */
	@ApiModelProperty("短链接码")
	protected String shortCode;

    /** 短链接 */
	@ApiModelProperty("短链接")
	protected String shortUrl;

    /**  */
	protected LocalDateTime createTime;

	/**
	 * 构造一个空商户短码表实体对象
	 */
	public MerchantShortUrlEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个商户短码表实体对象
	 * 
	 * @param other 其它对象
	 */
	public MerchantShortUrlEntity(MerchantShortUrlEntity other){
		super();
     	this.id = other.id;
     	this.merchantId = other.merchantId;
     	this.shortCode = other.shortCode;
     	this.shortUrl = other.shortUrl;
     	this.createTime = other.createTime;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取商户ID
	 * 
	 * @return merchantId 商户ID
	 */
	public String getMerchantId() {
		return merchantId;
	}
  	
	/**
	 * 设置商户ID
	 * 
	 * @param merchantId 商户ID
	 */
	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	/**
	 * 获取短链接码
	 * 
	 * @return shortCode 短链接码
	 */
	public String getShortCode() {
		return shortCode;
	}
  	
	/**
	 * 设置短链接码
	 * 
	 * @param shortCode 短链接码
	 */
	public void setShortCode(String shortCode) {
		this.shortCode = shortCode;
	}

	/**
	 * 获取短链接
	 * 
	 * @return shortUrl 短链接
	 */
	public String getShortUrl() {
		return shortUrl;
	}
  	
	/**
	 * 设置短链接
	 * 
	 * @param shortUrl 短链接
	 */
	public void setShortUrl(String shortUrl) {
		this.shortUrl = shortUrl;
	}

	/**
	 * 获取
	 * 
	 * @return createTime 
	 */
	public LocalDateTime getCreateTime() {
		return createTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param createTime 
	 */
	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

    public String toString() {
		return new StringBuilder().append("MerchantShortUrlEntity{").
			append("id=").append(id).
			append(",merchantId=").append(merchantId).
			append(",shortCode=").append(shortCode).
			append(",shortUrl=").append(shortUrl).
			append(",createTime=").append(createTime).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public MerchantShortUrlEntity copy() {
		return new MerchantShortUrlEntity(this);
	}

    /**  */
	public static final String COL_ID = "id";

    /** 商户ID */
	public static final String COL_MERCHANT_ID = "merchant_id";

    /** 短链接码 */
	public static final String COL_SHORT_CODE = "short_code";

    /** 短链接 */
	public static final String COL_SHORT_URL = "short_url";

    /**  */
	public static final String COL_CREATE_TIME = "create_time";
}
